<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<A HREF="toadd">
    <button>添加</button>
</A>

<table border="1">
    <tr>
        <td>id</td>
        <td>name</td>
        <td>gname</td>
        <td>cname</td>
        <td>操作</td>
    </tr>
    <tr th:each="sb:${studentList}">
        <td th:text="${sb.id}">id</td>
        <td th:text="${sb.name}">name</td>
        <td th:text="${sb.gname}">name</td>
        <td th:text="${sb.cname}">name</td>
        <td>
            <a th:href="@{'toEdit?id='+${sb.id}}"><button>修改</button></a>
            <a th:href="@{'del?id='+${sb.id}}"><button>删除</button></a>
        </td>
    </tr>
</table>
</body>
</html>